import Vue from 'vue'
import VueResource from 'vue-resource'
import VueRouter from 'vue-router'
import Home from './Home.vue'
import Explorer from './Explorer.vue'
import Me from './Me.vue'
import Cart from './Cart.vue'
import App from './App2.vue'

Vue.use(VueResource)
Vue.use(VueRouter)

const router=new VueRouter({
  mode:'history',
  base:__dirname,
  linkActiveClass:'active',
  routes:[
    {name:'Home',path:'/',component:Home},
    {name:'Explorer',path:'/explorer',component:Explorer},
    {name:'Cart',path:'/cart',component:Cart},
    {name:'Me',path:'/me',component:Me}
  ]
})

new Vue({
  http:{
    root:'/api',
    headers:{}
  },
  el: '#app',
  router,
  render: h => h(App)
})

